import pytest

from selenium import webdriver
from PO.Page.Page import Page
from PO.Page.Page2 import Page2
from PO.Page.Page3 import Page3
import time
# 测试用例层
class Test_Case():
    def setup_method(self):
        self.driver=webdriver.Edge()
        self.driver.maximize_window()

    def teardown_method(self):
        time.sleep(10)
        self.driver.quit()

    def test_jx_lj_01(self):
        po=Page(self.driver)
        po.driver.get('https://www.jiuxian.com/')
        po.login()
        po.name()
        po.password()
        po.login_btn()

    def test_jx_lj_02(self):
        po=Page2(self)
        po.text()
        po.sreach()
        po.shop()

    def test_jx_lj_03(self):
        po=Page3(self.driver)
        po.my()
        po.close()
        po.arrdess()
        po.delete()







